package com.mark.mall.admin.platform.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * Created by admin on 2021/2/28 18:09
 */
@Data
@ApiModel("后台物料修改")
public class ProductUpdateParam {
    @ApiModelProperty(value = "物料id")
    @NotEmpty(message = "物料id不能为空!")
    private String id;

    @ApiModelProperty(value = "物料编码")
    @NotEmpty(message = "物料编码不能为空!")
    private String code;

    @ApiModelProperty(value = "物料名称")
    @NotEmpty(message = "物料名称不能为空!")
    private String name;

    @ApiModelProperty(value = "物料价格")
    private BigDecimal price;

    @ApiModelProperty(value = "物料单位")
    @NotEmpty(message = "物料单位不能为空!")
    private String unit;

}
